package com.wn.common.pojo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "菜品")
public class ResProduct {
    private Integer id;

    @NotBlank(message = "产品名称不能为空！")
    private String productName;

    private String productImages;

    @Min(value=0L,message = "产品价格不得小于0!")
    @NotNull(message = "产品价格不能为空！")
    private Long productPrice;

    private String productEvalute;



}
